﻿@model KRM.Core.tblProduct

<p>@Model.ProductName</p>
<div class="row-fluid">
    <div class="span1">Options</div>
    <div class="span11">
        @Html.DropDownList("ProductOptionID", null, new { @class = "input-block-level", onchange = "productoptionschange(this.value)" })
    </div>
</div>
<p>Sub Options</p>
<div id="pnproductoptioncontrol">
    <div id="pnSubOptions">
    </div>
    <div class="row-fluid">
        <div class="span1">Price</div>
        <div class="span2">
            <input type="text" class="input-block-level" /></div>
        <div class="span2 text-right">Est LeadTime:</div>
        <div class="span1">
            <input type="text" class="input-block-level" /></div>
        <div class="span2 text-right">Availability:</div>
        <div class="span1">
            <input type="text" class="input-block-level" /></div>
        <div class="span2">Stock Level:</div>
    </div>
</div>
<div class="row-fluid">
    <div class="span1">Quantity</div>
    <div class="span1">
        <input type="text" class="input-block-level" value="1" name="quantity" /></div>
    <div class="span2"><a href="@(Model.tblStore.StoreDomain + "/" + Model.Url)" target="_blank">Show product</a></div>
    <div class="text-right">
        <input type="button" class="btn btn-primary" value="View FAQ(@ViewBag.CountFAQ)" onclick="@("PopupCenter('/orderview/viewfaqs?isProductOnly=1&productid="+Model.ProductID+"',1200,640)")"/>
        <input type="button" class="btn btn-primary btn-pricehistory" value="Price History" />
        <input type="button" class="btn btn-primary" value="Custom Product" onclick="addcustomproduct()" />
        <input type="submit" class="btn btn-primary" value="Add to Order" />
    </div>
</div>
<script>
    productoptionschange($("#ProductOptionID").val());
</script>